﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kaiser.Models;
using Kaiser.Modules.DC.Models;

namespace Kaiser.Modules.DC.Services
{
    public interface IDCManageService
    {
         int DeleteProductList(string ids);
         void InsertProduct(Models.ProductInput model);
         void UpdateProduct(Models.ProductInput model);
         DataGrid<ProductInput> SearchProduct(Models.DCSearch search, Kaiser.Models.PagingInfo pageinfo);
         DataGrid<OrderDetailInput> SearchOrderDetail(Models.DCSearch search, Kaiser.Models.PagingInfo pageinfo);

        int DeleteOrderList(string ids);

        int DeleteOrderDetailList(string ids);

        void InsertOrderDetail(OrderDetailInput model);

        void UpdateOrderDetail(OrderDetailInput model);

        void InsertOrder(OrderInput model);

        void UpdateOrder(OrderInput model);

        DataGrid<OrderStatisticsInput> OrderStatisticsList(DCSearch search, PagingInfo pageinfo);

        DataGrid<OrderDetailStatistics> OrderDetailStatisticsList(DCSearch search, PagingInfo pageinfo);

        DataGrid<OrderInput> SearchOrder(DCSearch search, PagingInfo pageinfo);
    }
}
